﻿// -----------------------------------------------------------------------
// <copyright file="TaskAttribute.cs" company="The Usual Dosage">
// © 2013 by Matthew M. Martin
// </copyright>
// -----------------------------------------------------------------------

namespace Cadence.NET.Attributes
{
    using System;

    /// <summary>
    /// Attributes which define the behavior of a task.
    /// </summary>
    public class TaskBehavior : Attribute
    {
        /// <summary>
        /// Gets or sets a value indicating whether [run concurrent].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [run concurrent]; otherwise, <c>false</c>.
        /// </value>
        public bool RunConcurrent { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [run asynch].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [run asynch]; otherwise, <c>false</c>.
        /// </value>
        public bool RunAsynch { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [run immediately].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [run immediately]; otherwise, <c>false</c>.
        /// </value>
        public bool RunImmediately { get; set; }
    }
}
